package com.pureut.quality.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.quality.domain.QualityBadCategory;
import com.pureut.quality.domain.dto.QualityBadCategoryDto;
import com.pureut.quality.domain.vo.QualityBadCategoryVo;
import com.pureut.quality.export.QualityBadCategoryExport;

import java.util.List;


/**
 * @Description
 * @Param
 * @Date
 * @Author hl
 **/
public interface IQualityBadCategoryService extends IService<QualityBadCategory> {

    /**
     * 查询不良类别
     */
    List<QualityBadCategoryDto> selectBadCategoryList(QualityBadCategoryVo qualityBadCategoryVo);

    /**
     * 新增不良类别
     */
    boolean insertBadCategory(QualityBadCategoryVo qualityBadCategoryVo) throws Exception;

    /**
     * 批量删除不良类别
     */
    int deleteBadCategoryById(String badId);

    /**
     * 根据编号获取详细信息
     */
    QualityBadCategoryDto selectBadCategoryById(long badId);

    /**
     * 修改不良类别
     */
    boolean updateBadCategoryEdit(QualityBadCategoryVo qualityBadCategoryVo);

    /**
     * 导入
     */
    String importMouldData(List<QualityBadCategoryExport> coCustomer);
}
